package com.gzz.orchid.main.facade.openfeign;

import org.springframework.http.client.ClientHttpRequest;
import org.springframework.http.client.ClientHttpRequestInitializer;

/**
 * @author higmd
 */
public class HttpRequestInterceptor implements ClientHttpRequestInitializer {


    @Override
    public void initialize(ClientHttpRequest request) {
        String token = "Bearer " + "token";
        //request.getHeaders().add("Authorization", token);
        request.getHeaders().add("x-auth-token", token);
    }
}
